//
//  BKZhiYuanHeaerView.m
//  baokaodaxue
//
//  Created by dangyangyang on 15/6/2.
//  Copyright (c) 2015年 宏图教育. All rights reserved.
//

#import "BKZhiYuanHeaerView.h"

@implementation BKZhiYuanHeaerView

// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    
    CGContextSetLineWidth(context, .5);
    
    CGContextSetRGBStrokeColor(context, .5, .5, .5, .5);
    
    CGFloat height = rect.size.height;
    
    CGContextMoveToPoint(context, 101, 0);
    CGContextAddLineToPoint(context,101, height);
    CGContextStrokePath(context);
    
    CGContextMoveToPoint(context, 101, height/2);
    CGContextAddLineToPoint(context,rect.size.width, height/2);
    CGContextStrokePath(context);
    
    CGFloat width = (rect.size.width-101)/3.0;
    
    

    
    CGContextMoveToPoint(context, 101+width, height/2);
    CGContextAddLineToPoint(context,101+width, height);
    CGContextStrokePath(context);
    
    CGContextMoveToPoint(context, 101+width*2, height/2);
    CGContextAddLineToPoint(context,101+width*2, height);
    CGContextStrokePath(context);
 

}


@end
